package misc;

import java.util.Iterator;

import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.util.Cookie;

/**
 * @author Filip Lindqvist <buggfille@gmail.com>
 * @created 5:10:12 PM - Nov 12, 2011
 */
public class HtmlUnitHelper {

    private static void printCookies(final WebClient client) {
        Iterator<Cookie> cook_itr = client.getCookieManager().getCookies()
                .iterator();
        while (cook_itr.hasNext()) {
            System.out.println(cook_itr.next().getValue());
        }
    }
}
